package com.example.problem1.api;

import com.example.problem1.entity.Demo;

public interface DemoFactory {

    default Demo createDemo() {
        Demo demo = new Demo();
        demo.setId(2L);
        demo.setName("实例方法装配");
        return demo;
    }
}
